<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: Administratort6ggggggggggggggggggggggt6g
  Date: 2020/9/25
  Time: 11:34
  To change this template use File | Settings | File Templates.
--%>
<!--指令部分：第一行-->
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>我的第一个JSP页面</title>
</head>
<body>
    <!--小脚本:书写JAVA代码的区域-->
    <%
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String str = sdf.format(date);
    %>
    <!--表达式:输出显示到页面-->
    当前时间:<%=str%>
</body>
</html>
